package operation;

import book.Book;
import book.Booklist;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024 —03 —04
 * Time: 20:57
 */
public class ShowOperation implements IOPeration {
    public void work(Booklist booklist) {
        System.out.println("打印图书");
        int currentSize = booklist.getUsedsize();
        for (int i = 0; i < currentSize; i++) {
            Book book = booklist.getBook(i);
            System.out.println(book);
        }
    }
}
